﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using ProjectStore30032013.DAL;

namespace ProjectStore30032013.REPORT
{
    public partial class ReportListProduct : DevExpress.XtraReports.UI.XtraReport
    {
        public ReportListProduct()
        {
            InitializeComponent();
        }

        private void ReportListProduct_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            productsTableAdapter = new DataSetReportTableAdapters.ProductsTableAdapter();
            productsTableAdapter.Connection = new System.Data.SqlClient.SqlConnection(new Controler().ConnectionString);
            productsTableAdapter.Fill(dataSetReport1.Products);
        }

    }
}
